package Other;

public class Person {
    private int id = 1;
    private String name = "hello";

    public Person() {
        System.out.println("无参构造方法被调用了");
    }

    public void print() {
        System.out.println("你好啊");
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
